<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>百顺通云-后台代理商详情页面</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- 公用js文件引入 -->
        <jsp:include page="../../admin/commonCSS.jsp"></jsp:include>
        <style type="text/css">
        	.dialog_changerule .aui_close {
        		display:none;
        	}
        	#rules .input-group {
        		margin-bottom: 30px;
        	}
        	#rules .input-group select {
        		width: 150px;
        	}
        	#rules .input-group:nth-child(1) span{
    			letter-spacing: 0.4em;
        	}
        </style>
    </head>
    <body class="skin-blue">
        <!-- 公用头部 -->
        <jsp:include page="../../admin/commonHeader.jsp"></jsp:include>
       
        <div class="wrapper row-offcanvas row-offcanvas-left">
            
            <!-- 公用导航 -->
            <jsp:include page="../../admin/commonMenu.jsp"></jsp:include>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        代理商管理
                        <small>代理商详情</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                        <li class="active">代理商管理</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
                    <!-- Small boxes (Stat box) -->
                    <div class="row fixrowscroll">
                        
                        <!-- table数据 -->
                        <div class="box-body table-responsive">
                            <div class="dataTables_wrapper form-inline fixwrapperscroll" role="grid">
                                <div class="row">
                                    <div class="col-xs-6"></div>
                                    <div class="col-xs-6"></div>
                                </div>
			                	<table class="table table-bordered table-hover dataTable">
									<tbody>
										<tr>
											<td width="20%" class="taright">公司名称：</td>
											<td width="30%"><span>${companyIdentify.companyName}</span></td>
											<td width="20%" class="taright">企业执照注册号：</td>
											<td><span>${companyIdentify.bnessLicenseRegistNum}</span></td>
										</tr>
										<tr class="alt">
											<td width="20%" class="taright">企业执照所在地：</td>
											<td width="30%" colspan="3">${province.provinceName}  ${city.cityName}    ${area.areaName}<span></span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">常用地址：</td>
											<td colspan="3"><span>${companyIdentify.bnessLicenseAddress}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">营业期限：</td>
											<td width="30%">
												<span>
													<fmt:formatDate value="${companyIdentify.bnessLicenseStartDate}" pattern="yyyy-MM-dd"/> 
													至
													<c:if test="${companyIdentify.bnessLicenseEndDate == '' || companyIdentify.bnessLicenseEndDate == null}">
														长期
													</c:if> 
													<c:if test="${companyIdentify.bnessLicenseEndDate != '' && companyIdentify.bnessLicenseEndDate != null}">
														<fmt:formatDate value="${companyIdentify.bnessLicenseEndDate}" pattern="yyyy-MM-dd"/>
													</c:if> 
													
												</span>
											</td>
											<td width="20%" class="taright">联系电话：</td>
											<td><span>${companyIdentify.comyContactUserTel}</span></td>
										</tr>
										<tr>
											<td width="20%" class="taright">组织机构代码：</td>
											<td width="30%" ><span>${companyIdentify.organizationCode}</span></td>
											<td width="20%" class="taright">营业范围：</td>
											<td width="30%" ><span>${companyIdentify.bnessLicenseRange}</span>
											</td>
										</tr>
										<tr>
											<td width="20%" class="taright">注册资金（元）：</td>
											<td width="30%" ><span>${companyIdentify.registerMoney}</span>
											</td>
											<td width="20%" class="taright">传真：</td>
											<td width="30%" ><span>${companyIdentify.companyFax}</span>
											</td>
										</tr>
										
										<tr>
											<td width="20%" class="taright">营业执照副本扫描件：</td>
											<td width="30%"><img class="imgurl" alt="" src="${authLicense.attachPath}" width="380" height="280"></td>
											<td width="20%" class="taright">加盖公章的副本：</td>
											<td width="30%"><img class="imgurl" alt="" src="${duplicateLicense.attachPath}" width="380" height="280"></td>
										</tr>
										<tr>
											<td width="20%" class="taright">审核状态：</td>
											<td><span>
											<c:if test="${companyIdentify.state==1}">已提交未审核</c:if>
											<c:if test="${companyIdentify.state==2}">已审核未通过</c:if>
											<c:if test="${companyIdentify.state==3}">审核通过（已实名认证）</c:if>
											</span></td>
										</tr>
									</tbody>
								</table>
								<div>
									<c:if test="${companyIdentify.state == 2 || companyIdentify.state == 3}">
										<button type="button" class="btn btn-primary" disabled="disabled" id="pass">通过</button>
										<button type="button" class="btn btn-primary" disabled="disabled" id="unpass">退回</button>
									</c:if>
									<c:if test="${companyIdentify.state == 1}">
										<a href="/sysAdmin/certificateAdmin/cCertificateDetail/${companyIdentify.id}/3" type="button" class="btn btn-primary" id="pass" >通过</a>
										<a href="/sysAdmin/certificateAdmin/cCertificateDetail/${companyIdentify.id}/2" type="button" class="btn btn-primary" id="unpass" >退回</a>
									</c:if>
									<a href="javascript:history.back(-1)"><button type="button" class="btn btn-primary">返回</button></a>
								</div>
                            </div>
                        </div>


                    </div><!-- /.row -->
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

		<script type="text/javascript">
			var currentMenu = 'userManager';
		</script>
        <!-- 公用js文件引入 -->
        <jsp:include page="../../admin/commonJs.jsp"></jsp:include>
		
        <script src="/js/admin/userManager/certificateManager.js"></script>
        

    </body>
</html>
